package xyz.lwm.lazycat.web;

import xyz.lwm.lazycat.web.exception.ExceptionMapper;

/**
 * <h2>异常注册, 允许用户注册异常处理</h2>
 * <p>该类必须在 beans 容器中实例化</p>
 *
 * @author lwm
 */
public interface Exceptionable {

    /**
     * 注册异常处理
     *
     * @param exceptionMapper 异常处理映射
     */
    void customize(ExceptionMapper exceptionMapper);

}
